import authorWannaSay from "./AuthorWannaSay.md";
import transactional from "./事务与线程.md";
import forcircle from "./36for循环.md";
// 创建md组件同时设置文章其他信息，单独导出使用
export const components = {
  authorWannaSay: {
    id: 3,
    name: authorWannaSay,
    type: ["html", "javaScript", "vue"],
    describe: "作者想说",
    date: "2021-11-23 15:51:00",
  },
  transactional: {
    id: 2,
    name: transactional,
    type: ["java"],
    describe: "事务与线程",
    date: "2021-11-23 14:22:00",
  },
  forcircle: {
    id: 1,
    name: forcircle,
    type: ["javaScript"],
    describe: "36for循环",
    date: "2021-11-22 10:00:00",
  },
};
// 注册全部md组件
export const mdArticle = function (Vue, opts = {}) {
  Object.keys(components).forEach((key) => {
    Vue.component(key, components[key].name);
  });
};
